package com.zkingsoft.actions.admin;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zkingsoft.actions.common.BaseController;
import com.zkingsoft.plugin.pojo.PaginationVO;
import com.zkingsoft.pojo.AjaxResult;
import com.zkingsoft.syslog.SysLog;
import com.zkingsoft.syslog.SysLogService;

/**
 * @description 日志管理
 * @author 姜友瑶
 * @email 935090232@qq.com
 * @date 2016-07-19
 */
@Controller
@RequestMapping(value = "admin/log")
public class SysLogController extends BaseController {

	@Resource
	private SysLogService currentService;

	/**
	 * 
	 * @Description: 分页显示日志
	 * @author:姜友瑶
	 * @param log
	 * @param pageVo
	 * @return 返回类型 AjaxResult
	 * @date 2016年8月31日
	 */
	@RequestMapping(value = "/showList")
	public @ResponseBody AjaxResult showList(SysLog log, PaginationVO pageVo) {
		return showList(currentService, log, pageVo);
	}

	/**
	 * 
	 * @Description: 删除日志
	 * @author:姜友瑶
	 * @param keys
	 * @return 返回类型 AjaxResult
	 * @date 2016年8月31日
	 */
	@RequestMapping(value = "/del")
	public @ResponseBody AjaxResult del(String keys) {
		return remove(currentService, keys);
	}

}